<?php $state = $sf_guard_user->getIsActive() ?>
<?php $id_user = $sf_guard_user->getId() ?>
<?php $id_login_user = $sf_user->getGuardUser()->getId() ?>
<?php if($id_user != $id_login_user): ?>
    <?php if(!$state): ?>
        <ul class="sf_admin_td_actions">
            <?php echo link_to('Activar', '@activate_user?usr_id='.$sf_guard_user->getId()); ?>
        </ul>
    <?php elseif($state): ?>
        <ul class="sf_admin_td_actions">
            <?php echo link_to('Desactivar', '@deactivate_user?usr_id='.$sf_guard_user->getId()); ?>
        </ul>
    <?php endif; ?>
<?php endif; ?>